<?php
/**
 * TOP API: taobao.marketing.promotions.get request
 * 
 * @author auto create
 * @since 1.0, 2012-04-17 12:36:56
 */
class MarketingPromotionsGetRequest
{
    /** 
     * 需返回的优惠策略结构字段列表。可选值为Promotion中所有字段，如：promotion_id, promotion_title, item_id, status, tag_id等等
     **/
    private $fields;
    
    /** 
     * 商品数字ID。根据该ID查询商品下通过第三方工具设置的所有优惠策略
     **/
    private $numIid;
    
    /** 
     * 优惠策略状态。可选值：ACTIVE(有效)，UNACTIVE(无效)，若不传或者传入其他值，则默认查询全部
     **/
    private $status;
    
    /** 
     * 标签ID
     **/
    private $tagId;
    
    private $apiParas = array();
    
    public function setFields($fields)
    {
        $this->fields = $fields;
        $this->apiParas["fields"] = $fields;
    }

    public function getFields()
    {
        return $this->fields;
    }

    public function setNumIid($numIid)
    {
        $this->numIid = $numIid;
        $this->apiParas["num_iid"] = $numIid;
    }

    public function getNumIid()
    {
        return $this->numIid;
    }

    public function setStatus($status)
    {
        $this->status = $status;
        $this->apiParas["status"] = $status;
    }

    public function getStatus()
    {
        return $this->status;
    }

    public function setTagId($tagId)
    {
        $this->tagId = $tagId;
        $this->apiParas["tag_id"] = $tagId;
    }

    public function getTagId()
    {
        return $this->tagId;
    }

    public function getApiMethodName()
    {
        return "taobao.marketing.promotions.get";
    }
    
    public function getApiParas()
    {
        return $this->apiParas;
    }
    
    public function check()
    {
        
        RequestCheckUtil::checkNotNull($this->fields,"fields");
        RequestCheckUtil::checkNotNull($this->numIid,"numIid");
    }
}
